package org.com.cay.dubbo.web.controller;

import org.com.cay.dubbo.service.DubboService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created by Cay on 2018/6/13.
 */
@RestController
public class WebController {

	@Autowired
	private DubboService dubboService;

	@RequestMapping("/test")
	public String getData(String name) {
		return dubboService.getData(name);
	}
}
